Skip to content

nRF52xxx: Add UART hal + examples #558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 22, 2025
Merged

nRF52xxx: Add UART hal + examples #558

merged 6 commits into from
May 22, 2025

Conversation

mattnite
Copy link
Contributor

No description provided.

@mattnite mattnite requested a review from Grazfather May 20, 2025 19:47
@mattnite mattnite marked this pull request as draft May 20, 2025 19:55
.root_source_file = b.path("src/boards/nrf52840-mdk.zig"),
},
}),
.pca10040 = chip_nrf52832.derive(.{
.board = .{
.name = "PCA10040",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this name? Why not nRF52-DK?

@Grazfather Grazfather force-pushed the nrf-hal-init branch 2 times, most recently from 4ad4b15 to 67f6c46 Compare May 21, 2025 13:15
@@ -0,0 +1,39 @@
const Patch = @import("microzig/build-internals").Patch;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(so far) we could use the same patch file as 52840

@Grazfather Grazfather marked this pull request as ready for review May 22, 2025 19:19
pub fn main() !void {
board.init();

uart.apply(.{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you want this board specific, we could have a board.init_uart.

I think in most simple cases we don't want CTS and RTS, but maybe some board with an on-board usb uart bridge might have it in which case we would.

@Grazfather Grazfather changed the title GPIO and UART basics for nRF52832 nRF52xxx: Add UART hal + examples May 22, 2025
@mattnite mattnite merged commit 701a7f0 into main May 22, 2025
43 checks passed
@mattnite mattnite deleted the nrf-hal-init branch May 22, 2025 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants